import { createApp } from 'vue';
import { setToastDefaultOptions } from 'vant';
import router from '@/router';
import App from './App.vue';
import './style.css';
import 'normalize.css';
// Toast
import 'vant/es/toast/style';
// Dialog
import 'vant/es/dialog/style';
// ImagePreview
import 'vant/es/image-preview/style';

setToastDefaultOptions({ duration: 2000 });
setToastDefaultOptions('loading', { forbidClick: true, duration: 0 });

const app = createApp(App);
app.use(router).mount('#app');
